let vm = new Vue({
    el:'.main-container',  //选中整个main
    data:{
        detail:{},//初始化对象     vue建议声明对象同时进行初始化，避免undefinded
    },
    methods:{
      selectById:function () {
        axios({
            url:`/guguanjia/manager/work/admin/selectById/${this.detail.id}`
        }).then(result=>{
            this.detail = result.data.obj;
        }).catch(error=>{
            console.log(error.message)
        })
      }
    },
    created:function () {
        this.detail.id = parent.layer.obj;
        this.selectById();
        // console.log(this.detail.id);
    },
});